home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 64
/
Volume 64 - JOGO DISK .iso
/
Games
/
sorveteria-maluca.swf
/
scripts
/
Loader.as
Wrap
Text File
|
2008-03-17
|
2KB
|
56 lines
function LoaderClass()
{
var _loc1_ = this;
_loc1_.slideColor = new Color(_loc1_.slide);
_loc1_.bordColor = new Color(_loc1_.bord);
_loc1_.update();
}
LoaderClass.prototype = new MovieClip();
LoaderClass.prototype.update = function()
{
var _loc1_ = this;
_loc1_.slideColor.setRGB(_loc1_.scolor);
_loc1_.bordColor.setRGB(_loc1_.bcolor);
_loc1_.bord._width = _loc1_.SlideWidth + 4;
_loc1_.slide._width = _loc1_.SlideWidth;
_loc1_.bord._height = _loc1_.SlideHeight + 4;
_loc1_.slide._height = _loc1_.SlideHeight;
_loc1_.createTextField("mytext",1,_loc1_.bord._x,_loc1_.bord._y,300,40);
delete _loc1_.mtextFormat;
_loc1_.mtextFormat = new TextFormat(_loc1_);
_loc1_.mTextFormat.font = _loc1_.fname;
_loc1_.mTextFormat.color = pink;
_loc1_.mTextFormat.size = _loc1_.fsize;
_loc1_.mytext.text = "";
_loc1_.mytext.setTextFormat(_loc1_.mtextFormat);
};
LoaderClass.prototype.setSlideWidth = function(b)
{
this.SlideWidth = b;
this.update();
};
LoaderClass.prototype.getSlideWidth = function()
{
return this.SlideWidth;
};
LoaderClass.prototype.setSlideHeight = function(h)
{
this.SlideHeight = h;
this.update();
};
LoaderClass.prototype.getSlideHeight = function()
{
return this.SlideHeight;
};
LoaderClass.prototype.setTintColor = function(c)
{
this.tcolor = c;
this.update();
};
LoaderClass.prototype.turnOnTint = function()
{
this.applyTint = true;
this.update();
};
Object.registerClass("Loader",LoaderClass);